#include <stdio.h>
#include <stdlib.h>


int main(int argc, char *argv[]) {
	double F,C;
	scanf("%lf",&F);
	C=5*(F-32)/9;
	printf("%.2f",C);
	return 0;
}
